package com.medicine.prm.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * tbsmedicalorder实体 就诊单表
 * Tbsmedicalorder entity.
 * @author 杨文
 * @date 2020-11-13 14:37
 */
@Entity
@Data
@TableName("tbsmedicalorder")
public class Tbsmedicalorder implements Serializable {

	private static final long serialVersionUID = 1L;
	@TableId(value = "smorderid", type = IdType.UUID)
	/*
	* 主键
	*/
	private String smorderid;
	/*
	* 患者主键
	*/
	private String spid;
	/*
	* 医生主键
	*/
	private String sdid;
	/*
	* 医院主键
	*/
	private String shospitalid;
	/*
	* 机构主键
	*/
	private String sorgid;
	/*
	* 总价
	*/
	private Double itotalprice;
	/*
	* 状态 1待诊 2已诊
	*/
	private Integer istatus;
	/*
	* 创建时间
	*/
	private Date dcreatetime;
	/*
	* 是否删除 1否2是
	*/
	private Integer isdelete;
	/*
	* 修改时间
	*/
	private Date dupdatetime;

	/*
	 * 就诊日期
	 */
	private Date dvisittime;

	/*
		预约/挂号时间
	 */
	private Date  dstart;
	/*
		渠道1、预约2、挂号 3、门诊 4=咨询
	 */
	private Integer ichannel;

	/*
		号数
	 */
	private Integer ino;
	/*
		类型1=上午号2=下午号3=晚上号
	 */
	private Integer itype;

	/*
		挂号费
	 */
	private Double  iprice;

	/**
	 * 备注
	 */
	private String  sremarks;
	/**
	 * 门诊编号
	 */
	private String  siptotpno;

	private Integer icosttype;//费用类型1=自费2=统筹
	/*@Id
	@GenericGenerator(name="idGenerator", strategy="uuid")
 	@GeneratedValue(generator="idGenerator")
 	@Column(name = "smorderid" , unique = true, nullable = false , length=64 )
	public String getSmorderid(){
		 return this.smorderid;
	}

	public void setSmorderid(String smorderid){
		 this.smorderid=smorderid;
	}

		@Column(name = "spid" , length=64 )
	public String getSpid(){
		 return this.spid;
	}

	public void setSpid(String spid){
		 this.spid=spid;
	}

		@Column(name = "sdid" , length=64 )
	public String getSdid(){
		 return this.sdid;
	}

	public void setSdid(String sdid){
		 this.sdid=sdid;
	}

		@Column(name = "shospitalid" , length=64 )
	public String getShospitalid(){
		 return this.shospitalid;
	}

	public void setShospitalid(String shospitalid){
		 this.shospitalid=shospitalid;
	}

		@Column(name = "sorgid" , length=64 )
	public String getSorgid(){
		 return this.sorgid;
	}

	public void setSorgid(String sorgid){
		 this.sorgid=sorgid;
	}

		@Column(name = "itotalprice" , length=10 )
	public Double getItotalprice(){
		 return this.itotalprice;
	}

	public void setItotalprice(Double itotalprice){
		 this.itotalprice=itotalprice;
	}

		@Column(name = "istatus" , length=10 )
	public Integer getIstatus(){
		 return this.istatus;
	}

	public void setIstatus(Integer istatus){
		 this.istatus=istatus;
	}

		@Temporal(TemporalType.TIMESTAMP)
 	@Column(name = "dcreatetime" , length=19)
	public Date getDcreatetime(){
		 return this.dcreatetime;
	}

	public void setDcreatetime(Date dcreatetime){
		 this.dcreatetime=dcreatetime;
	}

		@Column(name = "isdelete" , length=10 )
	public Integer getIsdelete(){
		 return this.isdelete;
	}

	public void setIsdelete(Integer isdelete){
		 this.isdelete=isdelete;
	}

		@Temporal(TemporalType.TIMESTAMP)
 	@Column(name = "dupdatetime" , length=19)
	public Date getDupdatetime(){
		 return this.dupdatetime;
	}

	public void setDupdatetime(Date dupdatetime){
		 this.dupdatetime=dupdatetime;
	}

	@Temporal(TemporalType.TIMESTAMP)
 	@Column(name = "dvisittime" , length=19)
	public Date getDvisittime() {
		return dvisittime;
	}

	public void setDvisittime(Date dvisittime) {
		this.dvisittime = dvisittime;
	}


	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dstart" , length=19)
	public Date getDstart() {
		return dstart;
	}

	public void setDstart(Date dstart) {
		this.dstart = dstart;
	}

	@Column(name = "ichannel" , length=10 )
	public Integer getIchannel() {
		return ichannel;
	}

	public void setIchannel(Integer ichannel) {
		this.ichannel = ichannel;
	}

	@Column(name = "ino" , length=10 )
	public Integer getIno() {
		return ino;
	}

	public void setIno(Integer ino) {
		this.ino = ino;
	}

	@Column(name = "itype" , length=10 )
	public Integer getItype() {
		return itype;
	}

	public void setItype(Integer itype) {
		this.itype = itype;
	}

	public Double getIprice() {
		return iprice;
	}

	public void setIprice(Double iprice) {
		this.iprice = iprice;
	}

	@Column(name = "sremarks" , length=1000 )
	public String getSremarks() {
		return sremarks;
	}

	public void setSremarks(String sremarks) {
		this.sremarks = sremarks;
	}

	@Column(name = "siptotpno" , length=30 )
	public String getSiptotpno() {
		return siptotpno;
	}

	public void setSiptotpno(String siptotpno) {
		this.siptotpno = siptotpno;
	}

	@Column(name = "icosttype" , length=10 )
	public Integer getIcosttype() {
		return icosttype;
	}

	public void setIcosttype(Integer icosttype) {
		this.icosttype = icosttype;
	}*/
}
